package com.iluwatar.abstractdocument.domain;

import com.iluwatar.abstractdocument.Document;
import com.iluwatar.abstractdocument.domain.enums.Property;

import javax.print.Doc;
import java.util.Optional;

public interface HasType extends Document {
    default Optional<String> getType(){
        return Optional.ofNullable((String)get(Property.TYPE.toString()));
    }
}
